]> dgit.raspbian.org Git - gnome-shell.git/commit
hotplut-sniffer: Use one-shot idle/timeout functions
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 29 Jan 2026 13:29:58 +0000 (14:29 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 29 Jan 2026 15:16:05 +0000 (15:16 +0000)
commit1b1d22b5da2aea45f3125c91b72fc636a736abf1
tree4519c65eba16ef2531e627505f08e861031d1fa2
parentcc1e00e8783beb443d50a5db1d59f5232604e2f5
hotplut-sniffer: Use one-shot idle/timeout functions

GLib added one-shot variants of the idle/timeout functions a while ago.

While they don't save a lot of code, they serve as a clear marker that
the callback is only invoked once.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3947>
src/hotplug-sniffer/hotplug-sniffer.c
src/hotplug-sniffer/shell-mime-sniffer.c